import sqlite3
print(sqlite3.sqlite_version)
con=sqlite3.connect(':memory:')
cur=con.cursor()
cur.execute('create table people (name,age)')
who='John'
age=20
cur.execute('insert into people values (?,?)',(who,age))
cur.execute('select * from people where name=:who and age=:age',{'who':who,'age':age})
print(cur.fetchone())